package cn.jdy.common.bo;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import cn.jdy.framework.util.DateUtil;

/**
 * 基础实体类，用于扩展
 *
 * @author zhaigt
 */
@MappedSuperclass
public class BaseEntry {

	/*** ===== 全局共有属性，会在数据库中创建字段，在多租户模式下用于数据切割  ===== ***/
  @Column(length=20,updatable = false)
  private String createTime;// 创建时间
//  tenantid // 租户标示
	
	/*** ===== 分页相关变量，不会在数据库中创建字段  ===== ***/
  @Transient
  private int pagestart = 0;// 用与分页，起始值
  @Transient
  private int pagesize = 0;// 用与分页，每页显示条数
  @Transient
  private String keyType;//查询类型
  @Transient
  private String keywords;//关键字
  @Transient
  private String sortType;
  
	@Transient
  private int pageNo;// 显示的起始索引
  @Transient
  private int iDisplayStart;// 显示的起始索引
  @Transient
  private int iDisplayLength;// 显示的行数
  @Transient
  private int iColumns;// 显示的列数
  @Transient
  private String sSearch;
  @Transient
  private boolean asc;
  @Transient
  private boolean bEscapeRegex;

  @Transient
  private int iTotalRecords;
  @Transient
  private int iTotalDisplayRecords;
  /*** ===== 分页相关变量，不会在数据库中创建字段  ===== ***/
  
  
	public String getSortType() {
		return sortType;
	}

	public void setSortType(String sortType) {
		this.sortType = sortType;
	}

	public int getPagestart() {
		return pagestart;
	}

	public void setPagestart(int pagestart) {
		this.pagestart = pagestart;
	}

	public int getPagesize() {
		return pagesize;
	}

	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getKeyType() {
		return keyType;
	}

	public void setKeyType(String keyType) {
		this.keyType = keyType;
	}

  public int getPageNo() {
    return pageNo;
  }

  public void setPageNo(int pageNo) {
    this.pageNo = pageNo;
  }

  public int getiDisplayStart() {
    return iDisplayStart;
  }

  public void setiDisplayStart(int iDisplayStart) {
    this.iDisplayStart = iDisplayStart;
  }

  public int getiDisplayLength() {
    return iDisplayLength;
  }

  public void setiDisplayLength(int iDisplayLength) {
    this.iDisplayLength = iDisplayLength;
  }

  public int getiColumns() {
    return iColumns;
  }

  public void setiColumns(int iColumns) {
    this.iColumns = iColumns;
  }

  public String getsSearch() {
    return sSearch;
  }

  public void setsSearch(String sSearch) {
    this.sSearch = sSearch;
  }

  public boolean isAsc() {
    return asc;
  }

  public void setAsc(boolean asc) {
    this.asc = asc;
  }

  public boolean isbEscapeRegex() {
    return bEscapeRegex;
  }

  public void setbEscapeRegex(boolean bEscapeRegex) {
    this.bEscapeRegex = bEscapeRegex;
  }

  public int getiTotalRecords() {
    return iTotalRecords;
  }

  public void setiTotalRecords(int iTotalRecords) {
    this.iTotalRecords = iTotalRecords;
  }

  public int getiTotalDisplayRecords() {
    return iTotalDisplayRecords;
  }

  public void setiTotalDisplayRecords(int iTotalDisplayRecords) {
    this.iTotalDisplayRecords = iTotalDisplayRecords;
  }
  
  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }
}
